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

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

Recommended Posts

Posted

Hi Guys

I have two fields in my invoice database, the 'invoice due date' and the 'invoice paid date'. I would like to find out, on average, how good a client is at paying on time. So I need a script that works out the difference, as a number, between the two dates. But what I have doen doesn't work!!!

For example, an invoice due on September 25th but paid on September 20th would return the value of '5'. But an invoice paid on September 30th would return the value of '-5'. My calculation below is completely wrong and I don't know what I should be doing!

If ( not IsEmpty ( invoice paid date ); Int ( invoice due date - invoice paid date ) ; "" )

Can anyone help???

Posted

How about Case( not IsEmpty(invoice paid date); invoice paid date - invoice due date )? No Int is necessary, because mathematical calculations on date fields naturally return the answer in whole days. I would think you also want to reverse the subtraction so that clients who pay early have a negative late average.

Posted

Ah ha!

Excellent my friend. Yes this works and is much better with an early payer having a negative number.

Thanks V much!

This topic is 7343 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.