Dear friend!
You cannot calculate the OSNR value in this way. When the link is normal, the tested OSNR value is the actual value. When the optical fiber is disconnected or not disconnected, the hardware performance of the board(especially the optical amplifier board) is different.

Thanks!