I need to get number of vacant days in each month in every year
Leasing Contracts
So, my target is to occupy all units along the year.
For that I have to find how many days in each month units are not occupied (There s not contract) and focus on these units to reduce the price or give promotions.
So, I have lease start and lease expiry dates for the units in the first table and I want to know in summary table (second table) number of days in each month which are not belong to any of the leasing period (from/to range) from the first table for each unit.
I need Excel formulas and/or SQL scripts to be applied to find all days without rent for each project/unit in the selected year
Appreciate your support in advance!
Project Name Unit No Lease Start Lease Expiry Rent Per Annum Building1 Unit1 01-01-2017 31-12-2017 70000 Building1 Unit1 01-01-2018 15-08-2018 60000 Building1 Unit1 01-10-2018 31-12-2018 60000 Building1 Unit2 01-01-2017 31-12-2017 60000 Building1 Unit2 01-03-2018 31-07-2018 60000 Building1 Unit2 01-09-2018 30-09-2018 45000
Vacancies Days multiply by last daily rate renting (rent per annum)/365
Project Name Unit No Jan-18 Feb-18 Aug-18 Sep-18 Oct-18 Building1 Unit1 0 0 16*164 30*164 0 Building1 Unit2 31*164 28*164 31*164 0 31*123