Tweaked ratio calculation