# Subtracting Different amount of days based on what option is chosen in two different fields

• 0
• Question
• Updated 4 months ago
• Answered
I have a Due Date Field, in which I want it to look at the Item Type Field, and Task Field and based on what is chosen it will calculate a Due Date.  I started typing this Date Formula but this field will only populate if I choose Video Jet which I am assuming I am missing information in this.  I also will do a check box or button override for certain items that will need to be manually edited.  Any help would be awesome.

If([Item Type]="Proficiency Testing", If (([Task]="Video Jet"), WeekdayAdd ([Due Date], -60)),

If ([Item Type]="Proficiency Testing", If (([Task]="Labels Applied"), WeekdayAdd ([Due Date], -60)),

If ([Item Type]="Proficiency Testing", If (([Task]="Collating"), WeekdayAdd ([Due Date], -50)),

If ([Item Type]="Proficiency Testing", If (([Task]="Dispensing / Gluing"), WeekdayAdd ([Due Date], -40))))))
• 112 Points Posted 4 months ago

• 0

QuickBasePros (Laura Thacker), Champion

• 6,396 Points Try this:

If([Item Type]="Proficiency Testing",
If([Task]="Video Jet", WeekdayAdd ([Due Date], -60),
If([Task]="Labels Applied", WeekdayAdd ([Due Date], -60),
If([Task]="Collating", WeekdayAdd ([Due Date], -50),
If([Task]="Dispensing / Gluing", WeekdayAdd ([Due Date], -40),
[Due Date])))))
• 112 Points Thank you very much!