Formula for weighted expected revenue

Hello,

I would like to calculate a weighted expected revenue by multiplying "discount_price" by "$quantity" and "$probability" in the revenue line item module and display it in the "best_case" field. 

Unfortunately, none of these formulas gives a reasonable result.




$discount_price = currency
$quantity = decimal
$probability = integer

Does anyone have any idea as to what the reason might be?

Thanks!

Steffen