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.

library overdue fine calculation

Featured Replies

Hi,

I'm adapting the lending library template file to work with our library which lends out items to students.

I'd like to set up a calculation so that a 20p fine is charged for each day that an item is kept after the due date. The maximum fine would be

I'm not sure what the p stands for (pence?), but your calculation for FineAmount would be something like Case( Get(CurrentDate) > DateDue and not Status = "available"; Min( 0.2 * (Get(CurrentDate) - DateDue); 2 ) ).

  • Author

Thanks for that, I'll give it a go.

Yes, I confess, I'm a Brit.

I should add that the calculation would need to be unstored in order to update each day.

  • Author

how could i get the calculation to stop at the 2.00 maximum fine?

The Min function should do that for you. It returns the minimum (smaller) of the two numbers.

  • Author

Thanks a lot for that!

Interestingly enough, once I add the asterisk, I can no longer access the Storage Options. So I would suggest entering Case( Get(CurrentDate) > DateDue and not Status = "available" ; Min( (Get(CurrentDate) - DateDue); 2 ) ) first, setting the Storage Options to 'Do not store', and then adding the "0.2 *" portion.

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.