This is the case of one who is obligated to fast, intentionally and with free will, having sexual intercourse in the daytime (Between dawn and sunset) in the month of Ramadan knowing that this is forbidden and having made the intention to fast at night.
Penance is not obligatory upon the woman even if she was the cause or compliant.
Penance is not obligatory on the man if he forgot he was fasting, or was forced to have intercourse, or was ignorant that this is forbidden and he has a reasonable excuse for his ignorance such as being a new convert to Islam or growing up away from Muslim scholars.
However, if one is ignorant of the penance it is still obligatory upon him.
Penance is not obligatory for someone who has intercourse in the daytime while not fasting for an excuse, such as illness or travel, nor for someone who intentionally breaks his fast, by eating or drinking, then has intercourse because the intercourse took place while he was not fasting.