without knowing the specifics of how you're calculating the half-life, it's difficult to figure out what's wrong. However, I suspect that the problem is dividing by 100 as your ~100x off.
Type: Posts; User: helloworld922
without knowing the specifics of how you're calculating the half-life, it's difficult to figure out what's wrong. However, I suspect that the problem is dividing by 100 as your ~100x off.
At no point in your loop are you modifying the value of computedAmount. Also, even if you replaced amountRemaining with computedAmount, the value you're assigning is an unchanging value.