To use a query string parameter in a calculation, you need to first add a Hidden field to the form, set its value with the Query String Smart Tag {querystring.PARAM} and then use that hidden field in the calculation.