Calc. Pseudo Range from user pos. and Sat Eph. data

I’m trying to calculate the pseudo range from an pasing satellite above me . Does somebody know any references for that? I’ve found this google lib but the calculateSatellitePositionAndVelocity function is dependent on the userSat rate which I want to calculate.

Greets, paul