This app uses the formula for height, h=12⋅g⋅t2, and the formula for lightning, d=t/5. Start the stopwatch and the app will tell you the information.