def METHOD_NAME(self) -> int | None:
    """Return calculated position."""
    if self._travel_to_position is None or self._last_known_position is None:
        return self._last_known_position
    relative_position = self._travel_to_position - self._last_known_position
    def position_reached_or_exceeded(relative_position: int) -> bool:
        """Return if designated position was reached."""
        if (
            relative_position <= 0
            and self.travel_direction == TravelStatus.DIRECTION_DOWN
        ):
            return True
        if (
            relative_position >= 0
            and self.travel_direction == TravelStatus.DIRECTION_UP
        ):
            return True
        return False
    if position_reached_or_exceeded(relative_position):
        return self._travel_to_position
    remaining_travel_time = self.calculate_travel_time(
        from_position=self._last_known_position,
        to_position=self._travel_to_position,
    )
    if time.time() > self._last_known_position_timestamp + remaining_travel_time:
        return self._travel_to_position
    progress = (
        time.time() - self._last_known_position_timestamp
    ) / remaining_travel_time
    return int(self._last_known_position + relative_position * progress)