improved year fraction to work with DX10