Jump to content
Salesforce and other SMB Solutions are coming soon. ×

Omit calculated results that are negative


Joanner

Recommended Posts

Hi,

 

I have a file that lists all outstanding invoices for vaious clients and calculates days past due on invoices over 30 days. Some of the invoices listed are not past 30 days so the result is a negative number.

 

Days past due = days - 30

 

It goes on to calculate the interest charge, which also shows a negative number. How do I make the "Days past due" calculation omit any negative numbers.

 

Thanks

Joanne

Link to comment
Share on other sites

I would express it this way to document the logic:

 

Let (daystopay = 30;

If ( days > daystopay; days - daystopay; 0)

)

 

In terms of documenting the logic, 'days' may not be a good field name. ;)

Link to comment
Share on other sites

This thread is quite old. Please start a new thread rather than reviving this one.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...

Important Information

Terms of Use