Dates to Exclude Leap Year

Dates to Exclude Leap Year

Hi there community,

The following formula correctly calculates the number of days between two dates within a subform of my custom module:

Datecomp(${Aircraft Rating.To},${Aircraft Rating.From})/1440

The problem is if the number of days between these two dates run over a leap year, I need to exclude the extra day.

How the heck can I do this?