diff --git a/squarenotsquare/src/libs/CalculateScore.js b/squarenotsquare/src/libs/CalculateScore.js new file mode 100644 index 0000000..8918179 --- /dev/null +++ b/squarenotsquare/src/libs/CalculateScore.js @@ -0,0 +1,6 @@ +export function calculateSquareScore (answers, finalTime) { + let timeScore = (60 - finalTime) * 1000; + let answerScore = answers * 1000; + let finalScore = timeScore + answerScore; + return finalScore; +} \ No newline at end of file