Original: Lincoln received official notice to join only 17 days before the ceremony, but Everett had received his invitation 40 days earlier.
Simplified: Lincoln was officially asked to join only 17 days before the ceremony, while Everett had received his invitation 40 days earlier.