The amount of your flight refund is always the cost of the ticket. The amount of your compensation depends majorly on the travel distance of your flight. In the case of a replacement flight, it also depends on the flight time. It is possible to receive both flight refund and compensation at the same time.