I'm working on leave application, have to calculate number of leave days available, starting from Startdate to Enddate of a contract. Where an employee get 1 day leave after 17 days from startdate of contract. How do I calculate the leave days, that accrue every after 17 days by 1.
I'm using ASP and SQL Server 2000 (Query Analyzer)
also you did not mention if its 17 business days or just 17 days.
If its business days its different and can be done with a function which calculates business days between 2 dates and then you can divide that number by 17.