Ok some notes as I get my thoughts straight ...
"#Dsm#"returns a number between zero and 60
So (#Dsm#/180)*360) will be a number between 0 and 120
The cos and sin functions take a radians argument with 2*pi for one full rotation.
120 ~= 19 * (2*pi) , so, your Jupiter image must be rotating 19 and a bit times per minute giving a period of around 1/19.0986 = 3.1416 seconds
If you include a new multiplier inside the sin and cos expressions you will adjust this period in inverse proportion to the multiplier.
For Jupiter, if you want a period of 6228 seconds then the multiplier needs to be 3.1416 / 6228
Likewise for the other planets.
Your argument expressions inside the sin and cos functions can be simplified to:
((#Dsm#*6.2832) / planet_period_in_seconds)
where, #Dsm# * 6.2832 will give you one revolution per second and the planet period divisor will slow this down to the required period.
I hope that helps.