When executing the below portion of my code, I am getting the error: syntax error: operand expected (error token is "/(60*60*24)")
# \function  convertsecs2dhms
# \brief     convert seconds to days hour min sec
#####################################################################################################################
function convertsecs2dhms()
{
    ((d=${1}/(60*60*24)))
    ((h=(${1}%(60*60*24))/(60*60)))
    ((m=(${1}%(60*60))/60))
    ((s=${1}%60))
     printValue=`printf "%02d days %02d hours %02d minutes %02d seconds \n" $d $h $m $s`
     printInfo "$printValue"
}
Here is the error that I am getting:
(standard_in) 1: syntax error
expr: syntax error
Estimated time for migration completion for server:-
./migration.sh: line 983: ((: d=/(60*60*24): syntax error: operand expected (error token is "/(60*60*24)")
./migration.sh: line 984: ((: h=(%(60*60*24))/(60*60): syntax error: operand expected (error token is "%(60*60*24))/(60*60)")
./migration.sh: line 985: ((: m=(%(60*60))/60: syntax error: operand expected (error token is "%(60*60))/60")
./migration.sh: line 986: ((: s=%60: syntax error: operand expected (error token is "%60")
00 days 00 hours 00 minutes 00 seconds