{"id":15265884,"date":"2022-01-18T20:26:36","date_gmt":"2022-01-18T20:26:36","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/any-help-with-a-formula\/"},"modified":"2022-01-18T20:26:36","modified_gmt":"2022-01-18T20:26:36","slug":"any-help-with-a-formula","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/any-help-with-a-formula\/","title":{"rendered":"any help with a formula"},"content":{"rendered":"<p>Helolo Everyone<\/p>\n<p>I need help with a formula if possible.<\/p>\n<p>Team A v Team B<br \/>\n1 match consists of 4 games. every game you win you get 2 pts. if a game is drawn you share the points so get 1pt each.<br \/>\nafter the 4 games have been played the total shots for each team is added up and whichever team has the most they get 1 additional point. if the aggregate shots is equal then that point is shared so each team gets 0.5 pt each.<\/p>\n<p>Team A wins 3 games so they get 6 pts<br \/>\nTeam B won the last game so they get 2pts<br \/>\nAggregate shots total is Team A  have 72, Team B  Have 64.<br \/>\nTeam A has highest aggregate shot total so Team A get an additional 1pt<\/p>\n<p>Therefore Team A win 7-2 and both teams get those points added to the league Team A +7 and Team B +2<\/p>\n<p>I hope you can help with this formula<\/p>\n<p>Thank you in advance.<\/p>\n<p>Robbie Hendry<br \/>\nps ive changed the variable names to make it easier to follow along i hope \ud83d\ude42<\/p>\n","protected":false},"template":"","class_list":["post-15265884","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/15265884","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/15265884\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=15265884"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}