def rate_planet(M_s: float):
    """
	Estimates planet occurrence rate for all planet radii and orbital periods under 50 days.
	Args:
		M_s (float): Star mass [Solar masses].
	Returns:
		Planet occurrence rate.
	"""
    if 2.5 - 1.5 * M_s > 0.1:
        return 2.5 - 1.5 * M_s
    else:
        return 0.1
