(one) all periods which the officer invested in medical internship or residency instruction throughout which the officer was not on Energetic obligation; and(d) Notwithstanding subsection (a), a commissioned officer may well not count in computing primary pay out a duration of service immediately after October 13, 1964, which the officer performed