How to calculate the true length of day on a celestial body?
If you know the length of a sideral day and the length of a year, you can determine the length of a solar day. 

From Wikipedia:



After one year, there will have been one more solar day than sideral day. Therefore :

solar day = sideral day / (1 - (sideral day/orbital period))