Calibration mpu6050

Hello
i want to calibrate my mpu6050 and obtain the value of acceleration in g
my mpu6050 is posted in board
i get the offset value how i can use this offset to obtain the value ax=0 ay=0 and az=1g