Electricity cost per phase in intervals

Hello
How to approach such a situation:

In our country electric energy cost produced by FVE is evaluated for each phase separately in 15-minute intervals.
As a result, I can buy electricity in one phase while selling it in another at the same time. With different prices of both, obviously, the result is different than just evaluating total energy for a whole day.

Is it possible to achieve that with a built-in energy dashboard somehow, considering I have power sensors for each phase? I mean, I did not see such a feature built-in, but maybe there is a possible workaround, by preparing some helper sensors.

Is anyone with such experience over here?