Without seeing your return, it’s impossible to tell why you are getting a $2 Detroit City refund or whether the amount is correct.
Generally, you will start with 260 total work days inside and outside of Detroit (5 days x 52 weeks). If you worked 30 days in Detroit, you would subtract vacation, holidays, and other non-work days to get the Detroit percentage to give you Detroit income.