slightly more sane calculation

Signed-off-by: Janssens <robin.janssens@gmail.com>