I am needing assistance with the following. In Australia a financial year runs from 1 July 20XX to 30 June 20YY. I need code to return either 365 or 366 total days depending upon whether it is a leap year. For example, if the input date is 16 August 2023, then the financial year of 1 July 2023 to 30 June 2024 contains the additional day as it is a leap year so the returned result is 366. This is because February having 29 days falls within that date range.
Please note that the software we are using has the following restriction:
*Note: You cannot use objects (OOP) in calculated fields. Instead you should use the php function like date() or strtotime() etc
Thank you very much for your assistance.