check_rate_limit function

Find requests remaining and reset time