わりかけると
owarikakeruto

Ichidan Verb

The "-to" conditional form ("if/when…") of 終わりかける

1. To be about to end; To nearly finish

To Conditional