it depends on which computer's usb ports you're charging from as well. 95% of usb ports out there will only supply 500ma. the ipad's ideal charging rate is 2a (2,000ma) however, recent macs can supply 1a and above, depending on when they were manufactured.
another tip: if you're using a usb port below 2a, turning off the ipad can help a lot. plug it into the port, then turn off the ipad. additionally, the screen can be the difference in charging or not charging in some cases. this is kind of a catch 22 because it will only charge when the screen is off, but you can only check if it's charging by turning on the screen.