Need to Read Pressure Readings from Voltage

I have a pressure transducer that is rated up to 200 psi. Therefore, I need to scale 0 - 200 psi to 0.5 - 4.5V. Below is my code but I do not know if it is correct. Been reading a bunch of articles about normalizing but unsure if it translates well here.

const int analogPin = A0;
float inputP1;
float outputP1;

inputP1 = analogRead(A0);
outputP1 = ((float)inputP1-0.5)/(4.5-0.5));

Look up the ‘map’ function.

const byte sensorPin = A0;
float sensorRating = 200.0; // 200 psi sensor
int offset = 102; // zero pressure adjust
int fullScale = 922; // max pressure (span) adjust
float pressure; // final pressure

void setup() {
  Serial.begin(9600);
}

void loop() {
  pressure = (analogRead(sensorPin) - offset) * sensorRating / (fullScale - offset);
  
  Serial.print("Pressure: ");
  Serial.print(pressure, 1); // one decimal place
  Serial.println(" psi");
  delay(500);
}