functions ( date dif , offset , lambda ) + record macro