ratio & padding calculator