Source: https://www.ncbi.nlm.nih.gov/books/NBK574243/bin/Rise_fall_to_baseline_equation_with_drift.pdf