The given equation is -3x²+240x-800
The maximum of the function is given when

where a and b are the constant of a quadratic form ax²+bx+c
We then have
a = -3
b = 240
Substitute these values into the maximum/minimum formula we have

Which means that the maximum profit is obtained when the number of refrigerators produced is 40 items a day
The maximum profit is
p = -3(40)²+240(40)-800 = $4000