Calculating how many degrees for each encoder pulse

No need to calculate the circumference of each wheel.
Just use the ratio of the diameters. (The value of π used in each circumference calculation cancels out).

No of degrees moved for one pulse = (360°/20) x (30/500) = 1.08°