Kompressor, Formula