Substring From The Right Sql Function Datediff