Skip 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.

Perform Calculation upon date range

Featured Replies

Hi All!

I am here yet again for all your wonderful help! *I mean that sincerely! Anyway, I am trying to calculate a field depending on a date range. I searched up & down for an answer which makes me think its SOOO simple that no-one has needed to ask. If thats the case, oh well, here I go! Here is the calculation I created:

If ( Cancellation Date = "11/1/2007" & "..." & "3/30/2008"; Total Cancellation Amount * .25 ; " " )

I have 3 different sets of dates that I need to calculate from. I have a cancel date field. Not sure what I'm doing wrong? I even tried changing the cancel date field to text. Help!

The problem you are having is you are trying to set up date range within a calculation. Use date ranges for searching the database.

Without knowing where you are using this (Script or calculation field) try something like this:

Calculation Field or Auto enter calc.

Case(

Date Cancelled>= Date Sold and Date Cancelled <= Date Sold+90 ; Price * .25;

" "

)

Script

If(

Date Cancelled >= Date Sold and Date Cancelled <= Date Sold +90)

Set Field(Cancellation Amount;Price * .25)

EndIf

This allows the desired result in either without having to 'hard code' the dates.

Edited by Guest

  • Author

Hi aldipalo,

That does work but the problem is that a lot of contract dates are different, they span the whole year. The first contract date is the third week in November and can range from then to the second week of November of the following year. The cancellation dates are specific to the third week in November to the end of March. If anyone cancels in that time period it is an automatic .25 they owe of their contract even if they sign on March 29th. From the beginning of April through the end of June would be .50% they owe of their contract and from the beginning of July until the show in November they owe 100% of their contract. I have been trying to re-arrange the calculation somehow but still can't seem to find an answer. Thank you in advance for all your help!!

Create an account or sign in to comment

Important Information

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

Account

Navigation

Search

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.