Amid record-high gas prices, anyone who relies on gas-powered vehicles sees their dollars amount to less fuel in their tanks. But for those who drive their cars to transport passengers or deliver food, the earnings squeeze is especially troublesome. Uber is working on a solution.

For those who don’t know, Uber uses a dynamic pricing algorithm to set the price per ride based on time, distance, traffic, etc. This calculation is out of the driver’s control, so the only way to offset any increase in gas prices is to lower their expenses. One way to do that is to switch to an electric vehicle.

Since charging an EV is less expensive than filling your tank at a gas station, combined with savings from reduced maintenance costs, drivers can save as much as $2,000 per year by switching to a battery-powered vehicle. A recent survey conducted by Uber Canada found that 71% of its drivers would make the switch.

See AlsoTesla Model 3: Everything you need to know

Thankfully, a fleet of EVs may soon be available to drivers, with Hertz providing 50,000 Telsas to Uber by 2023. The company will also partner with Plug’n Drive to offer web seminars and test-driving opportunities to help accelerate EV adoption. All are part of Uber’s goal to reach zer0-emissions worldwide by 2030.

In the meantime, Uber drivers using an electric vehicle can save an extra $1 on every trip, up to $4,000 per year. In addition, riders can use Uber Green, which costs an extra 50 cents per ride that goes right into the driver’s pockets. Not only is the future of energy electric, but it seems to be the future of finance.