Thanks everyone for your help but I found where was the issue It was in the database the price column was integer type and the additional_price was a numeric type now when I was sum both of them I got the null value and when i sum again the total with a null value I got the NaN output !.
thanks again.