Update calculate.js

Edit regex to allow "100%" as a valid value for the withSize function