All calculations done on the basis of Gauss Easter Algorithm
A = Y % 19 ; B = Y % 4 ; C = Y % 7 ; P = ( float ) floor ( Y / 100 ) ; Q = ( float ) floor ( ( 13 + 8 * P ) / 25 ) ; M = ( int ) ( 15 - Q + P - P / 4 ) % 30 ; N = ( int ) ( 4 + P - P / 4 ) % 7 ; D = ( int ) ( 19 * A + M ) % 30 ; E = ( int ) ( 2 * B + 4 * C + 6 * D + N ) % 7 ; int days = ( int ) ( 22 + D + E ) ;