Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- * (c) by Nodus IT
- */
- class PriceCalculation
- {
- /**
- * Berechnet die Stundenkosten für einen Mitarbeiter unter Einbeziehung der Sozialabgaben,
- * 20% pauschale Zusatztkosten für sonstige Personalkosten bei einer Jahresarbeitszeit von 215 Tagen
- *
- * @param float $salary Bruttogehalt
- *
- * @return float
- */
- public static function employeeCostsPerHour( $salary )
- {
- $costs = $salary;
- $costs += $salary * 0.1988; // Sozialabgaben
- $costs += $salary * 0.2; // Pauschalsatz für sonstige direkten und indirekten Personalkosten
- $workDaysPerYear = 52 * 5; // Werktage
- $workDaysPerYear -= 12; // Feiertage
- $workDaysPerYear -= 20; // Urlaub
- $workDaysPerYear -= 13; // Krankheit
- return round( $costs * 12 / $workDaysPerYear / 8 , 2 );
- }
- public static function savingPerAssembler( $salary , $amountPerOrder = 10 , $savingFactor = 0.7 , $ordersPerDay = 8 , $daysPerYear = 215 )
- {
- $costs = self::employeeCostsPerHour( $salary );
- $saving = $amountPerOrder * $ordersPerDay * 215 / 12 * 0.7;
- return $saving / 60 * $costs;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement