rotational period calculations