Daily leave reset policy only for remaining leaves from the previous year

Daily leave reset policy only for remaining leaves from the previous year

Hello,
when talking about daily leaves, our company has the following policy:
- each employee get 22 days of leaves at the beginning of each year
- at the end of the year, the remaining daily leaves are carried on to the next year
- on the 31st of March, if there are still remaining days from the past year, they are reset to 0

So, as an example:
- on the 1st of Jan. 2023 I got 22 days + 4 days from the previous year = 26 days
- on the 1st of Feb. 2023 I get a daily leave. My remaining amount is now 26 - 1 = 25 days
- on the 31st of March 2023, the remaining leaves from the previous year (which are now 4 - 1 = 3 - see previous point) are reset to zero. My new balance will be 22 available daily leaves.

What is the proper way to set leaves in order to get this result?

Thank you

    Access your files securely from anywhere

        Zoho Developer Community




                                  Zoho Desk Resources

                                  • Desk Community Learning Series


                                  • Digest


                                  • Functions


                                  • Meetups


                                  • Kbase


                                  • Resources


                                  • Glossary


                                  • Desk Marketplace


                                  • MVP Corner


                                  • Word of the Day



                                      Zoho Marketing Automation
                                              • Sticky Posts

                                              • Team Zoho People in your city!

                                                We are back with our next series of community events to meet you at your city! We are delighted to invite you to join us for a day of insightful sessions, interactions with other Zoho People users, and one-on-one sessions with our product experts. This
                                              • Come, join our HR Community!

                                                Hello everyone, We are delighted to invite you to join the HR Community, an exclusive forum for HR professionals around the world to collaborate, learn and grow together. In the HR community, you will be part of a tight-knit HR group, wherein you can,
                                              • Ask the experts: A 5-hour live Q and A session on Zoho People

                                                We are back with the 'Ask the experts' session of the month! Your platform to get instant answers to your questions on Zoho People is now open. Our team of experts is here, on a continuous 5-hour stretch, to answer and give expert solutions. What to ask? Your questions, doubts or any hiccup revolving Zoho People. If you do not have any questions, you can follow the post to add it to your knowledge.   Where to ask? Simply use the comments' space of this post to type in your questions.You can start
                                              • Ask the experts: A 5-hour live Q and A session on Zoho People

                                                The awaited 'Ask the experts' session of the month is here to give instant answers to your questions on Zoho People.  Our team of experts is here, on a continuous 5-hour stretch, to answer and give expert solutions.   What to ask? Your questions, doubts or any hiccup revolving Zoho People. If you do not have any questions, you can follow the post to add it to your knowledge.   Where to ask? Simply use the comments' space of this post to type in your questions. You can start posting your questions
                                              • Webinar: What HR should be doing during this pandemic

                                                These are testing times for organizations, especially for Human Resources. From the reallocation of resources to finding new ways to manage a remote workforce, there are so many things that HR should be focusing on right now. Now is when expert advice can help. Join us for a free webinar and hear it from one of the leading industry experts, Nick Holley, on what HR should be doing during this pandemic.  This will be a partially interactive session where Nick will answer your questions once every 10


                                              Manage your brands on social media



                                                    Zoho TeamInbox Resources

                                                      Zoho DataPrep Resources



                                                        Zoho CRM Plus Resources

                                                          Zoho Books Resources


                                                            Zoho Subscriptions Resources

                                                              Zoho Projects Resources


                                                                Zoho Sprints Resources


                                                                  Qntrl Resources


                                                                    Zoho Creator Resources



                                                                        Zoho Campaigns Resources


                                                                          Zoho CRM Resources

                                                                          • CRM Community Learning Series

                                                                            CRM Community Learning Series


                                                                          • Kaizen

                                                                            Kaizen

                                                                          • Functions

                                                                            Functions

                                                                          • Meetups

                                                                            Meetups

                                                                          • Kbase

                                                                            Kbase

                                                                          • Resources

                                                                            Resources

                                                                          • Digest

                                                                            Digest

                                                                          • CRM Marketplace

                                                                            CRM Marketplace

                                                                          • MVP Corner

                                                                            MVP Corner





                                                                              Design. Discuss. Deliver.

                                                                              Create visually engaging stories with Zoho Show.

                                                                              Get Started Now