def to_jd(year, month, day):
gy = year - <NUM_LIT:1> + EPOCH_GREGORIAN_YEAR<EOL>if month != <NUM_LIT:20>:<EOL><INDENT>m = <NUM_LIT:0><EOL><DEDENT>else:<EOL><INDENT>if isleap(gy + <NUM_LIT:1>):<EOL><INDENT>m = -<NUM_LIT><EOL><DEDENT>else:<EOL><INDENT>m = -<NUM_LIT:15><EOL><DEDENT><DEDENT>return gregorian.to_jd(gy, <NUM_LIT:3>, <NUM_LIT:20>) + (<NUM_LIT> * (month - <NUM_LIT:1>)) + m + day<EOL>
Determine Julian day from Bahai date