networking hw#1
delay calculation and its output