<p>On SO 18 Joel mentioned an algorithm that would rank items based on their age and popularity and it's based on gravity.  Could someone post this? C# would be lovely, but really any language (well, I can't do LISP) would be fine.  </p>

My understanding is that it is approximately the following from another
Jeff Atwood
post
```
```
t = (time of entry post) - (Dec 8, 2005)
x = upvotes - downvotes

y = {1 if x > 0, 0 if x = 0, -1 if x < 0)
z = {1 if x < 1, otherwise x}

log(z) + (y * t)/45000
```
```