I have a problem that is hard to explain. I have leave time that needs to be calculated. This leave time needs to be taken within 1 year. It is accumulated during the year and some of the leave is take throughout the year. I need to find a way to look back and find the oldest leave date that hasn't been used yet and make sure it is used within that year. So, if I earn 8 hours 1/1/2020, 8 hours 1/20/2020, use 6 hours on 2/10/2020 and 2 hours 3/1/2020, and 1 hour 4/1/2020, I need to find out how many hours need to be used before the year of the oldest time earned date. That probably wasn't clear enough. It's hard to describe what I need to do. I don't even know where to begin. I'm hoping someone can give me a starting point and a direction. I'm stumped right now.