A simple matlab code for calculation of Hertz solution (Hertz model) for line, point and elliptical contacts. Also shows a plot of resultant pressure and deflection (not for elliptical contact). Here you can find an online tool: https://www.tribonet.org/calculators/hertz-pressure-calculator/.