optimize bathing schedule