Formula For Increase And Decrease Intervals In Python Code Examples