t = (-1 * (((c + h) * (p / 100)) + (c + h))) / ((o * (p / 100)) - (1 - o)) - take that algebra! right in your face!