How to calculate the amount between 2 dates.
For example
Consider if in month January 2021
I need to get the amount between From Date: 1st Jan 2021
and To Date : `15 Jan 2021.
The calculation should be = Total Amount - (Amount from 16 Jan to 31 Jan)
Hope for a guidance to solve this :)