Hotels and mileage

Copper Contributor

Hi I would like to add the cost of hotels and/or mileage to a quote if certain criteria are met (distance and time).  Also to not produce a negative when deducting hotel for day of travel and a message if non required.  

3 Replies

@Sarah1963 

 

Can you show an example data and the desired result please.  Thank you

I don't at the moment. If number of hours in the day is greater then 10 and/or travel distance if greater than 60 then add hotel. Then reduce number of trips required by number of nights staying. Also number of rooms is divided by 2 engineers to a room. So if 40 hours (8 hr day) x 2 engineers , 70 miles away should equal 3 nights hotel, 1 room and 2 trips.

@Sarah1963 

 

Is the end result displayed in one cell?  This is the reason why knowing the geography of the dataset is important.