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