I wish to take the value of a HTML string contained within tags - perform a calculation on it - and output the results in a separate string, dependent on which input is se