• Normally we do not need this kind of "calculations". It is a common practice to store financial year date range in some master table, as different countries can have different financial years. So anyways you will need a variable to store this detail, simply store your financial year start_date and end_date with detail.