procedure TForm1.Button1Click(Sender: TObject);
var result, outgo, privilege, price1, price2, price3: real;
begin
privilege:=30;
price1:=0.71;
price2:=1.29;
price3:=1.64;
outgo:=StrToFloat(Edit1.Text);
if CheckBox1.Checked = True then outgo:=outgo-privilege;
if outgo < 100 then
result:=price1*outgo
else if (outgo >= 100) and (outgo < 600) then
result:=price2*outgo
else
result:=price3*outgo;
MessageDlg('Сума для оплати за електроенергію:' + #13#10 + FloatToStr(result) + ' грн.', mtInformation, [mbOk], 0);
end;