I think you can use the HH and LL functions here.