Does anyone know how rating is calculated as of yet?

Do you always gain the same amount for wins and lose the same amount for losses?

Where is this documented officially!?