by pypyguy · 16y ago · 0 comments
def calculate_score(votes, item_hour_age, gravity=1.8): return (votes - 1) / pow((item_hour_age+2), gravity)
function calculate_score($votes, $item_hour_age, $gravity=1.8) { return ($votes - 1) / pow(($item_hour_age+2), $gravity); }