Ore anno precedente

Buongiorno. in questo file che ho allegato calcolo le mie ore lavorative.
Mi sono accorto che non calcola le ore dell’anno precedente con il mese in corso.
Qualcuno mi può aiutare? Grazie
2024.ods (148.9 KB)

edit by @karolus:
Good morning. in this file I attached I calculate my working hours.
I realized that it does not calculate the previous year’s hours with the current month.
Can anyone help me with this? Thank you

A formula such as:
N21:
=IF(H21<F21;(H21+1-F21);(H21-F21))+IF(L21<J21;(L21+1-J21);(L21-J21))
should do the job, it adds 1 (a day) to the second value (uscita) when it is lower than the first (entrata)