I got the scheme from a 380VAC voltage monitor, where the device has the ability to detect phase reversals and detect voltage levels.
I have tried simulating in LTSPieceXVII and giving a 1.7V DC voltage to the output.
But I don't know how this circuit works and the formula is mainly on R1, R2...