logic change to ternary operation in 'in x time' label