I think you can use the replacement field in Javascript. Then you just need to multiply it by the required factor in Javascript. I am not an expert on this though, so I can't give you a working example. But I think this is the way to go.