Hi Sergei,
the staus 'rejected' is just what it is, a status. The status of an issue doesn't affect the time calculations. One has to clear the end date of the rejected task to get a proper calculation of the parent task.
You can find further information about the relations between subtasks and the parent task in the wiki article RedmineIssues
Kind regards,
Bernhard