I have a React app which is similar to a typeracer game . But I cannot figure out how to formulate the WPM equation.
I have a 210 second timer which counts down as 209, 208, 207, 206 ... And there is a counter which counts up if the user enters the correct letters 0, 1, 2 ...
Currently, I am calculating by
const INITIAL_TIME = 210;
let totalOfWords = correctTypedEntries / 5;
let leftTime = minutues * 2 + seconds //210
const WPM = totalOfWords / ( INITIAL_TIME - leftTime)