Calculating how many degrees for each encoder pulse

Or toothed belts.