From w3schools.com, Experiment by Teeratus_R
Open DevTools (F12) and set a breakpoint to debug this calculation.