how to calculate half life physics from a graph