Skip to main content
Question

Formula help (Start date + number of days)

  • November 18, 2020
  • 0 replies
  • 30 views

Hey everyone,

I'm having an issue getting my formulas to display on a Calendar report correctly. The start date is never 'included' in the count of days for the job duration, so on the Calendar I always get an extra day added. I only know that I could add -1 to the formula to minus a day, but then if that value is 0 because it has no duration, it gives me a -1... or if the result is only 1 day for the job, right now it will display 2 days on the calendar, if I add a -1, the duration will change to 0 on my form. Is there any work around to this? Kind of annoying that the start date isn't included in the count.

Formula:
(ToText(Ceil([1. Sub Duration]/10) & " " & "Days"))

// [1. Sub Duration] is my previous step that gets the final number in hours in a Numeric - Formula Field, divided by 10 for 10 hour workdays.
// Then obviously to result in # Days to display on the form for readability. 

Any help would be appreciated.

Thanks!​

------------------------------
Alex Bennett
------------------------------
This topic has been closed for replies.

MarkShnierYou
Forum|alt.badge.img+22
  • Quickbase Alumni
  • November 18, 2020
I suggest that you have one field to calculate the duration in days for display purposes and then use another formula to calculate the end date for the calendar.  The latter will have the minus 1.

------------------------------
Mark Shnier (YQC)
Quick Base Solution Provider
Your Quick Base Coach
http://QuickBaseCoach.com
mark.shnier@gmail.com
------------------------------