For each item, percent = score ÷ total. Weighted final averages those percents by weight. Points final is aggregate earned ÷ aggregate possible. Letters use a common US-style band sketch.
item% = score / total × 100
weighted% = Σ (item% × weight) / Σ weight
points% = Σ score / Σ total × 100
gap_pp = weighted% − points%
pull% = weight / Σ weight × 100
Extra credit can be modeled as an item with score above total. Every row needs a positive “out of”: a row with out of 0 or below, or a negative score or weight, is flagged and the grade stays hidden until it is fixed, so zero-total bonus rows are not supported. Confirm how your instructor counts extra credit.
This sketch weights individual items and does not aggregate by assignment group. Canvas, per its documentation, first combines points within each assignment group and then applies the group weights, which can give a different percent from item-level weighting. Other LMSs and instructors may differ; the syllabus wins.