Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 7409 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

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

Posted

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

Posted

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

Posted

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

Posted

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.

This topic is 7409 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

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