Find date interval excluding the weekends

Hi, am trying to find the date interval between the input date and the current date excluding the weekends. But it is not working.

Am using Dateinterval :


I tried DateInterval.The weekend also but am getting interval as 0. Is there any other way?