In a monopolistically competitive market a firm demand is given by the portion q=1500-50p

Tc=1500+3q+0.0025q^2
What is the maximum profit?