How to Write an Exponential Decay Function