fix bug: incorrect idle days. Leave was not being subtracted from records