Created
December 25, 2017 05:46
-
-
Save aereal/83fae197492588d64ba8f203aae17cf7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
HOUR = 1 | |
def jikyu(work_time_per_month: , nenshu: ) | |
gekkyu = nenshu / 12.0 | |
gekkyu / work_time_per_month | |
end | |
[ | |
{ work_time_per_month: HOUR * 8 * 5 * 4, nenshu: 3_000_000 }, | |
{ work_time_per_month: HOUR * 8 * 5 * 4, nenshu: 8_000_000 }, | |
{ work_time_per_month: 80, nenshu: 8_000_000 }, | |
].each do |data| | |
puts work_time: data[:work_time_per_month], jikyu: jikyu(work_time_per_month: data[:work_time_per_month], nenshu: data[:nenshu]), nenshu: data[:nenshu] | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment