simplified output loop to calculate the new n.timeFun function