order weighted average example but with really bad variable names :)