function its_calculated_value_should_be_an_integer(ShipmentInterface $subject)
 {
     $subject->getShippingWeight()->willReturn(10);
     $this->calculate($subject, ['fixed' => 200, 'variable' => 500, 'division' => 1])->shouldBeInteger();
 }
 /**
  * {@inheritdoc}
  */
 public function calculate(ShipmentInterface $subject, array $configuration)
 {
     return (int) ($configuration['fixed'] + round($configuration['variable'] * ($subject->getShippingWeight() / $configuration['division'])));
 }