https://gkalkcmzzv.blogspot.com/2021/07/how-to-calculate-weighted-arithmetic.html