fixed block number calculation