ついで

opportunity, occasion (while doing something else)

noun Rare #41,951
opportunity, occasion (while doing something else) Often used in the pattern ついでに.
JA: 買い物のついでに、郵便局に寄った。
EN: I stopped by the post office while I was out shopping.

丁度ついでです

I’m doing it while I’m at it anyway.

— ラスト、コーション (2007)

ついでに寄った

I stopped by while I was in the area.

— ビッグ・シック ぼくたちの大いなる目ざめ (2017)

君が飲むついでに、僕の分も入れてくれないかな。

While you're getting yourself a drink, could you pour one for me too?

ついでだ

Since I'm at it.

— ダイ・ハード (1988)