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.

Difference between dates not displaying correctly?

Featured Replies

Hello, everyone.

At the place I work, we have a database for the invoices that we send to customers, and another database for the payments we receive for those invoices. We are interested in figuring out how long, on average, it takes each of our customers to pay us back.

I've added a field to our invoice database, which is calculated as follows

Invoices::DaysToPay = Payments::Date - Invoices::Date

This should result in the number of days between when the invoice was issued, and when it was paid.

Next, in our customer file, we have this calculated field

Customer::AvgPaymentDays = Avg( Invoices::DaysToPay )

Where Customer is related to Invoices by the CustomerID. Theoretically, this should give me the average number of days that this customer takes to pay their invoices. On my computer, it does just that. However, on any other computer, running the same version of FileMaker, logged into the same account, the number is different. Instead of saying, for example, 36, it says -733863.

All the calculations fields are set to result as a number. There are no other calculations in play. I don't know what's going on here.

Any suggestions?

Regards.

Well, -733863 is what you would get if you subtracted the date of April 1, 2010 from zero. So I guess you have a problem with the data in the Payments::Date field.

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.