Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Calculate Day count given different duration dates

Featured Replies

Hello there - Please help......

 

 

I would like to create a field(Day_Count) that determines the day number(in red font) of a Trip/Visit record. Given the following records for the trip identified as 14CHACAP00214:

PLACE                      DATE_IN                DATE_OUT                NIGHTS          DAY_Count

Safari Camp            Date in: 11.03.2014 Date Out: 13.03.2014 Nights: 2       DAY 1

Cost Dunes             Date in: 13.03.2014 Date Out: 13.03.2014 Nights: 0       DAY 3

Mokuti Lodge          Date in: 13.03.2014 Date Out: 14.03.2014 Nights: 1       DAY 3

Gross Barmen         Date in: 14.03.2014 Date Out: 18.03.2014 Nights: 4       DAY 4

 

How do i implement a calculation for this result - or what solution will work for this scenario?

 

Many thanx for all suggestions/opinions,

Miss A!

 

 
 

Is there a StartDate field in the parent record?

  • Author

Yes there is a date When the trip starts and a date when the trip ends.

Well, then subtract the StartDate of the parent trip from the DateIn of the itinerary item (?) and add 1.

Edited by comment

  • Author

Yes Yes Thank you - got idea from your first suggestion, was not trusting what i made of it simply because just(most times i do not know what am doing).

 

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Account

Navigation

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.