format code
fix year end calculate bug