Scoring for Custom Quiz (Sections, Percentage)

There are 7 sections in our quiz, with three scored quiz questions in each (weighted scoring, 1-5) and I need a percentage score for each section (separated by page) and an overall score.

I got pretty far on my own. I’m not new to coding, just unfamiliar with the calculations involved for this. I set up the entire quiz, separating each section by page, including the hidden field for each score, etc. I’m just looking for someone to help connect the final dots.

What is your percentage score calculating? I see you have three quiz questions in each section, with weighted answers 1-5. What are you calculating as the percentage?