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 calc

Featured Replies

Hello forum.  I'm trying to come up with a calculation to do the following. I know my date calc is wrong, but date calcs are just not my strong suit.

It works everywhere except when crossing thru February.  It's based on 3 fields with the calculation in the due date field:

terms (30,60,90,120 days based on a value list),invoice date, and due date

I'm trying to do 1, 2, 3, 4 months, minus a day.  So technically, I think I'm doing it right, just not getting the desired result.

Results:

Invoice date           terms           due date

11/30/2016            90 days          02/29/17  <<doesn't work, gives 3/1/17

11/30/2016            60 days          01/29/17    <<works

11/30/2016            30 days         12/29/2016   <<works

11/30/2016            120 days       03/29/2017   <<works.

 

Here's the calc:

Date(Month(PAYMENTS::date_invoice)+(PAYMENTS::terms/30);Day(PAYMENTS::date_invoice)-1;Year(PAYMENTS::date_invoice))

Sample attached in FM12

Any help or pointers are always greatly appreciated

Thanks

Steve

 

PAYMENTS.fmp12

Edited by Steve Martino
additional info

  • Author

This is as easy as breathing for you, isn't it?

The native way with a limit works perfectly.

Thanks (again and again) comment, I really appreciate it.

Steve

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.