Take a 10,000mAh power bank to demonstrate. Its rated input is 5V/2A, so if you use a 5V/1A power adapter to charge it, its actual input current is 1A=1,000mAh. 10,000mAh /1,000mAh=10 hours.