Hello there!
I've built a Base to track "Vacation Requests" and 'balance vacation days' in two simple tables:
1) Staff: where fields are name, email, role, hired date, accrued days (formula based on hired date), used days (roll up from the sum of all approved vacation requests), balance days (accrued-used).
2) Vacation Request: where fields are req. id (formula), name (linked from staff table), email (linked from staff table), start-date, end-date, requested days (formula), status, duration (formula, only populate if status approved, this field is used on a roll up in the 'staff' table).
Up to there, everything's perfect. Where I'm stuck is how to keep track once the 12 month period is reset for each team member. Picture below illustrates an example:
Technically, for that team member that used 27 days already, now "his" calendar starts all over again, and he now should have 28 days available. Since all team members have different "hired dates" this is where I am a bit stuck. If I keep using the "vacation request form" then formulas will simply add days and show negative balance more and more. Don't know if I'm explaining myself correctly, hopefully I am hehe. Anyone has an idea on how to solve this? Cheers!