fixing getPeriod -> now return Double (for compatibility needs)