Until legal paternity is decided, the law presumes that custody of a child should be with the mother. However, when a court legally establishes paternity, the law directs that unless the court orders otherwise, custody of the child should be with the parent with whom the child has lived for most of the six-month period before paternity is decided. Of course, when the court decides custody or parenting time, the decision is always based on the best interests of the child. Accordingly, the court may order that either or both parents have custody if it is in the child’s best interests.