The ratings are based on how fast you solve them. There is a bar that decreases in percentage as the seconds tick away
some problems have two or three moves to solve
the level of difficulty is also based on your performance, the more you solve, the higher the difficulty
as for the mathematical calculations here, I am not sure if it is on the glicko system
maybe the community can answer that
[COMMENT DELETED]