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.

Date in GST Tax calculation not working?

Featured Replies

Hi all,

I am new to FM (ex-Access) and have problem calculating Canadian GST Tax (7% before Aug 01 2006 and 6% after Aug 01 2006), based on the date field "Proposal Date"(formatted as 12/25/2003) .

I tried the following 2 ways:

If ( Proposal Date < 8/1/2006 ; 1.07 ; 1.06 )

and

Case ( Proposal Date < 8/1/2006 ; 1.07 ; Proposal Date > 8/1/2006 ; 1.06 ; 1.06)

I am always getting back "1.06", what am I doing wrong?

Or is there a totally different way to accomplish this?

Any help really appreciated,

Emilio

See if this helps.

  • Author

Thanks for the response but can't see it, I get this

Firefox can't find the server at www.fmforums.comhttp.

You need to use the Date Function, or a second field that is a date.

Example of the Date Function:

Case ( Proposal Date < Date ( 8 ; 1 ; 2006 ) ; 1.07 ; 1.06 )

Example of second date field:

Case ( Proposal Date < Second Date; 1.07; 1.06)

In the link that comments posted, he had explained that a date use like you had, is NOT recognized as a date, but instead a number. Since the "/" is the division operator in FileMaker, you were dividing the number 8 by 2006.

HTH

Lee

  • Author

Thank you very much, works great!

The link works for me - and I'd still suggest you read it, regarding the inadvisability of hard-coding data into calculations.

Create an account or sign in to comment

Important Information

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

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.