a more legit way to calculate the offset

Signed-off-by: Greg Dietsche <gregory.dietsche@cuw.edu>