I have a project where I work with project activities, my activities have a certain time to complete, but the project has to do the calculation only with administrative days.
For example, an activity starts on 10/26/2015 (Monday) and its duration has 7 days it would have to make the calculation and return to me that the end of the activity would be on 03/11/2015 (Mon, Tue , Fri, Thurs, Fri, Fri and Tues) would have to remove on Saturdays and Sundays.
My project looks like this:
atividade.Inicio = status.InicioPrevisto.Value;
atividade.Duracao = 7;
atividade.Termino = atividade.Inicio.AddDays(duracao);