How to calculate hour between start date and end date excluding the weekend in AngularJS

In my application i have start datetime picker and end datetime picker. any idea how to calculate hours between two dates excluding weekend in AngularJS.

Source: New feed
Source Url How to calculate hour between start date and end date excluding the weekend in AngularJS