Netatmo: how to calculate daily heating-on time

I use History Stats helpers to do just that as mentioned here: