solve for t