steve400243
Active Member
- Joined
- Sep 15, 2016
- Messages
- 429
- Office Version
- 365
- 2016
- Platform
- Windows
Hello, I have the below formula used to calculate a charge after a certain amount of days (7), However it is not calculating the charge correctly, it goes to the min charge of $50.00 only for the first 5 days. If the Volume is larger it should calculate the past the min charge. It seems to work fine for the 12th day amount.
$3.50 per cbm, or $50 min charge for next 5 days, 12th day - additional $3.50 per cbm per day no min
Cell H4 - Start Date
H5 - effective storage date - 7th day after date in H4
H6 - 12th day
Cells F13 thru F35 - Volume, will be different in each row.
K13 - K35 - Pickup date
Any help would be greatly appreciated.
$3.50 per cbm, or $50 min charge for next 5 days, 12th day - additional $3.50 per cbm per day no min
Cell H4 - Start Date
H5 - effective storage date - 7th day after date in H4
H6 - 12th day
Cells F13 thru F35 - Volume, will be different in each row.
K13 - K35 - Pickup date
Code:
=IF(F13<0.01,0,ROUND(MAX(((K13-$H$6)*F13*3.5),0)+IF(K13-$H$4<7,0,MAX(((K13-$H$5)*3.5),50)),2))
Any help would be greatly appreciated.