@user21820 With respect to
D2: It is a duplicate, but is it really a bad question so that it should be deleted? OP explains what they try to calculate and how and there is an attempt. Even if that attempt is wrong, the question looks better to me than many others on this site.