I used the Line Of Best Fit formula in attempt to recognize the top of the Bell Curve in the graph of IR strength over time. Much callibration is needed.

Read the header of this code, it explains all that Is important.