Adding formula for terminator

Previous discussion : #10336

My formula includes small patch for cwd resolve.