Curious

I'm young and inexperienced, my mom is hard to talk to about sex but something I was wondering is how do you know when the boy is done either when giving head or vaginal sex?