Perhaps the math would make more sense if you swap the bike once the battery is depleted?
I'm still not sure that the tiny battery would give enough of an advantage to be worth the risk - I don't know take enough interest in road racing to know.
Oh - unless the peloton forget about the breakaway, then I take great interest! Love watching that race: https://www.theguardian.com/sport/2021/jul/25/anna-kiesenhof...