Created the code for calculating the inter arrival times.