The overstay in Denmark was for 9 days.
The case is actually complicated.
I stayed there 9 days extra on the Schengen visa. Unaware of the overstay, I applied for a spouse type in the overstay period. This is when a cop there told me that you are overstaying. Meanwhile, the application for the spouse visa was rejected as it was applied during the overstay.
Then when i came back to my home country i applied for a Schengen again. It was rejected.
Now i have applied again for the spouse visa from my home country and waiting for the decision!