It's quite complex. Smarter folk than me may pop in and add to the help/advice but you have many factors at play. Cost per kWh of the electricity and the miles/km per kWh at any given time and/or on average (real world) then the cost cost per litre or gallon of fuel and the current or average miles/km per litre/gallon (real world) of an ICE vehicle. Do you then also factor in other service costs broken down by the mile, don't know. Where you would get these figures would be another challenge.
All possible, I think Nissan have produced an iOS app which tries to tell you what you'd be saving by having an EV, can't recall it's name though, sounds similar to what you're looking to achieve.
All possible, I think Nissan have produced an iOS app which tries to tell you what you'd be saving by having an EV, can't recall it's name though, sounds similar to what you're looking to achieve.