Urgent Question about retaking course considering GPA

Ok, I am retaking Calc 141 now and I got a D last time. I just want to know what would the GPA became afterwards
Do they do 1(D)4 credits + 3.67(A)4 credits / 8 credits (total) or just 1+3.67 then divided by 2 not counting the retake credits?

Spelling mistake became-> become and it’s 3.67(A-) not 3.67(A)
Please help me, I would be very grateful

They will do neither as far as I understand. Your D will be on your transcript, as will your new grade in the new class. So it will average out on the overall transcript, but both will be visible and are counted towards your GPA.