Calculate number of days without weekends

I am creating a leave aplication app where user will apply leave by selecting the days that they would like to be on leave. However, users will be able to select full day or half day leave.

Hence, I would like to be able to calculate the period of leave application applied excluding weekends

For example,
18 January to 29 January will be 10 days

is this possible?

Yes it’s possible

How can i do it?

DateTime Calculations Questions

In all likelihood, 3/11/2019 is being interpreted as an arithmetic expresssion: 3 divided by 11 divided by 2019. Literal Date (and DateTime and Time) values should be quoted in AppSheet expressions: DATE(EOMONTH(β€œ3/11/2019”, 42)).

[End date calculation ignoring weekends?](https://community.appsheet.com/t/end-date-calculation-ignoring-weekends/18989/6) Questions

Try: ([Date] - WEEKDAY([Date]) + 2 + 7)

[Compute work time](https://community.appsheet.com/t/compute-work-time/22360) Tips & Tricks ?

Given a start date & time (DateTime column) and a number of work hours (Hours column, type Decimal), calculates the finish date & time to the nearest hour. Assumes the work day starts at 8:00 AM (β€œ08:00:00”) and ends at 5:00 PM (β€œ17:00:00”). Uses WORKDAY() to compute dates. IF( ( ([DateTime] + (β€œ000:00:00” + CEILING([Hours]))) <= (DATETIME(DATE([DateTime])) + (β€œ17:00:00” - β€œ00:00:00”)) ), ([DateTime] + (β€œ000:00:00” + ROUND([Hours]))), ( DATETIME( WORKDAY( DATE(…

[Count A certain day in a Mounth](https://community.appsheet.com/t/count-a-certain-day-in-a-mounth/13036/4) Questions

You can try this expression to identify how many times a given weekday (1-7 for Sun-Sat) occurs in a month containing a given date: ceiling( day( eomonth([date], 0) - weekday(eomonth([date], 0)) - ifs(([weekday] > weekday(eomonth([date], 0))), 7) + [weekday] ) / 7.0 ) eomonth([date], 0) gets the date of the last day of the month that contains [date]. weekday(eomonth([date], 0)) get the number of the weekday of that last day of the month. eomonth(…) - weekday(……

[Calculate how many days](https://community.appsheet.com/t/calculate-how-many-days/13317/4) Questions

If the out-of-service/inoperative time is in a Date-type column, you can compute the number of days with: (TODAY() - [DateColumn]) If the out-of-service/inoperative time is in a DateTime-type column, you can compute the number of days with: ROUND(HOUR(NOW() - [DateTimeColumn]) / 24.0)

3 Likes