F(drag) = A x Cd x V x V x m,

where A = cross sectional area of the object perpendicular to the direction of motion
Cd = coefficient of drag
V = velocity
m = density of the fluid through which the object is moving. in the case of a car, that will be the density or air. for a submarine it will be the density of sea water.

you will find this formula in basic fluid mechanics.