Calculates the remaining amount of a substance after a certain period, given its initial amount and half-life.