hi, I was wondering if anyone could help me
I have a vhost request script but I just cant seem to get it to $calc between the last date issued and a wait of 7 days (604800 seconds) and a time remaining before a new one can be requested

this is what I have so far:

on *:notice:*:?: { if ($nick == nickserv) {
if (vhost isin $1) {
if ($duration($calc($ctime - $ctime($6 $7 $8 $9))) <= 604800) {
msg #hosthelp Please wait $duration($6 $7 $8 $9,- 604800) until your next request
}
if ($duration($calc($ctime - $ctime($6 $7 $8 $9))) >= 604800) {
msg #hosthelp Your new vhost has been activated
}
elseif (vhost !isin $1) {
msg #hosthelp Your new vhost has been activated
}
elseif (is not registered isin $2-$4) {
msg #hosthelp You need to register your nick first
}
}
}
}


the vhost info from nickserv looks like this:

-NickServ- vHost : my.vhost.here (assigned on Jun 02 22:59:06 2019 +0800 (21h 9m 33s ago)

thanks smile