How to solve for half life