Bitbang delay Calculation Update

Now with more precise delay