How to get the correct number of days of the months in a given year

Another "method"

(draggable blocks, but you will need a clock component)

(the value 337 is the sum of all days in months except February)

Given that "we know" the number of days for each month apart from February, we could just get February:

1 Like