Questions about leave time calculation

Source: Internet
Author: User
First, let's talk about the leave rules: 1. for morning leave, the duration should not be less than 3 hours 2. for afternoon leave, the duration should not be less than 5 hours 3. working hours: 9: 00 ~ . There is one non-working hour at noon. due to the company's system, there is no overtime fee, but the time can be adjusted, so the time must be accurate to... first, let's talk about the leave rules:
1. leave in the morning for a period of no less than 3 hours
2. leave in the afternoon for a period of no less than 5 hours
3. working hours: 9: 00 ~
4. one non-work hour at noon
Because of the company's system, there is no overtime, but it can be adjusted, so the time must be accurate to the hour. The problem arises:
1. if the time span for my leave is from the morning to the afternoon to meet the rule, but the system computing time will be one more hour:

  • My solution is: first determine whether the start time and the end time are the same day, then determine whether the start time is morning, and whether the end time is afternoon, then the system calculates the time minus one hour.

2. if some people are stupid, they have to determine whether to deduct the time after because the start time and end time have exceeded the working time. for example, the end time is after.

3. the most troublesome thing is cross-day, if the holidays include special circumstances such as statutory holidays and double vacations. There is also a non-integer cross-day, for example, please go to eleven o'clock A.M. three days after, then three days after ~ How can I remove it?

This is a bit confusing. please share your experience with experienced elders. thank you !!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.