I think Poker Tracker calculates the rake as how much you lost from each specific pot that you win.
rakeback's
Rake Tracking calculates the rake as (Total Pot - Site Rake) / Number of Players in Hand.
I'm pretty sure that I've read something along these lines long ago.