Maths division

Hi all. Im working on a simple calendar function. The only problem i dont know maths. Im wanting to create the february month. basically as every one knows if a year is divisible by 4 then the total days of february = 29. How do i put that in A.S talk ideally in an “if statement”

Thanks all for bearing up with my numerical problems.

Scott:snooze: