Period determinations of spotted stars