Advanced Day Night Cycle

Hey , since it t akes Julian Day , I guess it should work for BC upto a certain limit , but the following website contains a ppt which covers the necessary formula that will give you a better idea -