duty
noun
°That which one is morally or legally obligated to do.
"England expects that every man will do his duty. (Nelson)"
°A period of time spent at work or doing a particular task.
"I’m on duty from 6 pm to 6 am."
synonyms: obligation