できたのに

could have ... but

→ 出来る
phrase Uncommon #18,083
could have ... but Often expresses regret about something that would have been possible under different circumstances.
JA: もっと早く出発していれば、間に合うことができたのに。
EN: If I had left earlier, I could have made it.

もし計画について知っていたら、私は彼の手助けができたのに。

If I had known about the plan, I could have helped him.

もし彼が彼女の電話番号を知っていたならば、彼女に電話できたのに。

If he had known her phone number, he could have called her.

もし彼女の住所がわかっていたなら、彼女を訪問できたのに。

If I had known her address, I could have visited her.

彼としてはもっと悪くもできたのに。

He could have made things much worse.

家ではできたのにドワネル

I was able to do it at home, though, Dwanell.

— 大人は判ってくれない (1959)