Discussions
It’s that time of the year again! As we embrace the holiday cheer, we want to share an important announcement regarding our holiday schedule. Our dedicated team of NetSuite Support Gurus will be taking a short break to recharge during the holidays, from December 24, 2024, to January 1, 2025. We’ll be back in full swing, ready to assist you on January 2nd. During the break, feel free to explore the wealth of NetSuite resources on our platform.
As we celebrate the season's joys, we are incredibly grateful for your ongoing support and engagement. Have a fantastic holiday break, and let's gear up for an incredible 2025!
Here are some examples to get your creative juices flowing.
"Did I pay vendor John Doe last month?"
"Take me to my largest sales order for this month."
"What invoices haven't been paid yet?"
NSC | Formula to Calculate Total Time in Minutes
Scenario
There are Time of Day type custom fields for "Time Started" and "Time Finished".
User wants to automatically calculate the total time (in minutes) between these two fields and show it in another custom field "Time Spent".
For example:
- Time Started = 1:00 pm
- Time Finished = 2:30pm
The Time Spent field should show 90.
Solution
This formula can be used to calculate the total time in minutes:
((CASE WHEN (FLOOR(({fieldforendtime}-{fieldforstarttime})*24)) < 0 THEN FLOOR(({fieldforendtime}-{fieldforstarttime})*24)+24 ELSE (FLOOR(({fieldforendtime}-{fieldforstarttime})*24)) END)*60) + (CASE WHEN MOD((({fieldforendtime}-{fieldforstarttime})*1440), 60) < 0 THEN MOD((({fieldforendtime}-{fieldforstarttime})*1440), 60)+60 ELSE MOD((({fieldforendtime}-{fieldforstarttime})*1440), 60) END)
Just change the {fieldforendtime} and {fieldforstarttime} to the field IDs of the fields in your account.
Learn how to Refer A Member | Earn the Answer Accepter Badge | Be the Content Creator of the Quarter | Vote for the content you want to see!