solves for radioctive decay