This article provides a duration (between two dates) calculator using ASP.Net C#
Background
Now switch to design mode; it will look such as follows.
Diving Into ASP.NET WebAPI