As long as you were in legal status during the filing the extension, you are fine. IThe clock starts after your H1b decision by USCIS. Note: if you are approved you will be given a new I-94 meaning you are allowed to stay legally, if not approved then you have to consider other options basing on the outcome.