You’ll need two numbers; the total duration, and either remaining time or completed time.
completed / total * 100 gives % completed
total - remaining / total * 100 gives % completed
(Bubble’s operators go from left to right)
You can then add floor or round to discard the fractional component.
The workflow action could store time remaining in seconds, instead of the current time, then your conditional expressions would be simpler.