switch(m){ case 1: day=day;j=31;break; case 2: day=day+31;j=x;break; case 3: day=day+31+x;j=31;break; case 4: day=day+31*2+x;j=30;break; case 5: day=day+31*2+30+x;j=31;break; case 6: day=day+31*3+30+x;j=30;break; case 7: day=day+31*3+30*2+x;j=31;break; case 8: day=day+31*4+30*2+x;j=31;break; case 9: day=day+31*5+30*2+x;j=30;break; case 10: day=day+31*5+30*3+x;j=31;break; case 11: day=day+31*6+30*3+x;j=30;break;