Calculating decay percentages, remaining atoms, and half-life