Electric vehicle energy storage integrated profit analysis code