Using variables to calculate sizes