VRM calculating actual profit

Hey all i’m looking for a way to calculate the actual profit for my battery system compared to no battery. I have dynamic electricity rates so it’s a little bit tricky.

Vrm shows me the battery running costs, the grid earnings and grid costs but that doesn’t really give enough data to calculate the actual profit. I basically need all the grid earnings and grid costs without the charging and discharging from the battery.

Can anyone send me to the right location because i couldnt find it on the forum. It must have been already been done in NodeRED. Or am i misinterpreting the vrm data and does it already show the actual profit each day?