in which case I will go one level down, to the
calculateExtraCommissions()
method.
In which case you will discover that the calculateExtraCommissions() function also has the same nested functions and you eventually find six subfunctions that each calculate some fraction of the extra commission, all of which could have been condensed into three lines of code in the parent function.
Following the author's idea of clean code to the letter results in a thick and incomprehensible function soup.
Mainly the issues are about providing ~600 kilowatts for 8 minutes to charge your typical size EV battery.
A row of 5 chargers of that size soaks up 3MW if they're all in use, and that's not something that can be quickly or easily shoehorned into a suburban electricity grid.
It's about 500 houses worth of electricity usage, for comparison. For just 5 fast chargers.
Not to say it's impossible, but infrastructure doesn't come cheap, and so it'll cost quite a bit to cram that 80 percent charge into your car's battery.