human
Can you provide a code to total number of days taken to complete the task if after certain days one person leaves and the other steps required given the following:
Total number of days taken to complete the task if after certain days one person leaves | Function to return the number of days required.
Driver code"
How can the above be solved in Python?
assistant
#Here is code to total number of days taken to complete the task if after certain days one person leaves and the other steps required.
 def numberOfDays ( a , b , n ) :
	Days = b * ( n + a ) // ( a + b )
	return Days
if __name__ == " _ _ main _ _ " :
	a = 10
	b = 20
	n = 5
	print ( numberOfDays ( a , b , n ) )