[#20][rebased]exclude parent issues from calculation

#21 is based on old revision.
This is rebased revision.