わりかけでした
owarikakedeshita

Noun
Desu Copula

The polite past form of 終わりかけ

1. Was about to end; Was nearly over

Past/Perfective
Polite