Affiliation on a paper written mostly in previous position If research was done and paper was mostly written at institute A, but then it finally got accepted while the author moved to institute B, say, 3 years later. Should the affiliation of the author be


Only Institute A: because 95% of the support was from here, and work was done here
Both Institute A and B: in some sense, both institutes supported the work
Only Institute B: this is where the author is affiliated at the moment


related: Changing affiliation on publication
There are no fixed rules but I would opt for your option (2). The affiliation is intended to aid in facilitating contact with the author but is of course useful to a department to show count the paper as a product from that institute. By listing your former address first indicating that that is where you did most of the work and then adding the second as present address provides the best and useful information for all parts. Option (1) means your present location is not disclosed which is a missed opportunity to locate you. Option (3) has the disadvantage that your former department are not associated with the work you performed there. So although all are acceptable, (2) would be the best (most polite and useful) way in your situation.