((r / (180s+90x)-r / (180s))*24*d)