Where does the Round go in the following formula:

=IF($C$19<5000000,500000,IF($C$19>5000000,(D52/$D$95)*$C$19))

I want it to round to the nearest 1,000.