I've had the post edited, but seems i was too slow.. ${procdays/:*}
It is/was the days that have the hours and minutes, i guess that is the core issue.
EDIT:
Of course i was refering to the original code, not yours
ScriptElapsedTime="1-3:20" is not a condition, its a variable asigning.
Further, math might work with float operators, usualy dots or comas, but not with : .
You gotta get rid of the : , handle it otherwise, for example as M.I.G provided.
You are right - it shouldn't execute unless the process is older than a day. And, on my system it doesn't. So, you might want to analyse the line step by step, checking every statement's exit status to find the reason for this inexplicable behaviour.
I think this is what happens. It executes with ScriptElapsedTime="1-3:20", and then your code sets ScriptElapsedTime="3:20" and then it fails.
Take my code! It sets proctime="3:20" and keeps the ScriptElapsedTime, so debugging is more clear.