now we calculate and write to file just avg quarterly interval differences for b4 tq,prof and dur tq,prof