i have a problem, im trying to get something like this to work

if (1wk 4d 22hrs 10m 0s => %timehere) { return nooo!! }
else ( return yess!!! }

but i cant seem to get it working properly
btw the "1wk 4d 22hrs 10m 0s" could be anything

thanks