Skip to content

Instantly share code, notes, and snippets.

@anton3nko
anton3nko / main.dart
Last active January 25, 2024 14:22
Raschet dohoda trading
void main() {
double startBalance = 4000;
int period = 24;
int procentPerMonth = 30;
double withdrawSum = 0;
double totalWithdraw = 0;
for (int i = 0; i < period; i++) {
double monthProfit = startBalance/100*procentPerMonth;
if (monthProfit <= 2000){
monthProfit = monthProfit/2;
void main() {
double startBalance = 10000;
int period = 30*6;
int procentPerDay = 5;
int withdrawSum = 0;
double result = 0.0;
for (int i = 0; i < period; i++) {
final dayProfit = startBalance/100*procentPerMonth;
startBalance += monthProfit;
var vTenge = monthProfit*450;