Update model database schema

This commit is contained in:
2023-04-16 15:08:15 +02:00
parent 0333e8a5c5
commit 6e0b59da4b
14 changed files with 232 additions and 72 deletions

View File

@ -86,5 +86,13 @@ namespace Elwig.Helpers {
UseShellExecute = true,
});
}
public static double KmwToOe(double kmw) {
return Math.Round(kmw * (4.54 + 0.022 * kmw), 0);
}
public static double OeToKmw(double oe) {
return Math.Round((-4.54 + Math.Sqrt(4.54 * 4.54 - 4 * 0.022 * -oe)) / 2 * 0.022, 1);
}
}
}