fragment calculator