RATING = (((SOS-0.5)/0.037)*0.67) + (((SOSL10-0.5)/0.037)*0.33) + 100 + (0.67*(MARG+(((ROAD-HOME)*3.5)/(GAMES))) + (0.33*(MARGL10+(((ROAD10-HOME10)*3.5)/(10)))))
SOS = Season win/loss percentage of team's opponents, expressed as a decimal (e.g., .500)
SOSL10 = Season win/loss percentage of team's last 10 opponents, expressed as a decimal (e.g., .500)
MARG = Team's average scoring margin
MARGL10 = Team's average scoring margin over the last 10 games
HOME = Team's home games
HOMEL10 = Team's home games over the last 10 games
ROAD = Team's road games
ROADL10 = Team's road games over the last 10 games
GAMES = Team's total games
This formula is taken from Hollinger section at insider.com. I was hoping someone with a little experience in programing could help me out - since i know absolutely nothing about it - transforming this into some sort of runable code in which i could apply weekly results from my league and generates a power ranking.