API usage limits calculation

@tushar_singh