added padding calculator